import request from "@/utils/http"

//获取一级分类列表
export const PriCategory = () => {
  return request({
    url: '/category',
    method: 'get'
  });
}

//获取一级分类下，对应二级分类列表
export const SecCategory = (Pid) => {
    return request({
        url: `/categories/${Pid}`,
        method: 'get'
 })
}